#!/bin/bash

cd ${R_SCRIPT_DIR}

if [ ${DISTMEM} = 1 ]; then
    module load openmpi/gcc/1.6.3/64
    ## time mpiexec -bynode -np 1 -nolocal -hostfile ${LNF} -mca btl ^openib -mca mpi_warn_on_fork 0 ${R_SCRIPT}
    time srun ${R_SCRIPT}
else
    time ${R_SCRIPT}
fi

cd ${START_DIR}
